package cn.peng.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private RestTemplate restTemplate;

    @Override
    public String getOrder() {

        String forObject = restTemplate.getForObject("http://localhost:8080/user", String.class);

        return forObject;
    }
}
